﻿<Controls:SinacorWindow    
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  
    xmlns:Custom="http://schemas.xceed.com/wpf/xaml/datagrid"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d"
    xmlns:Model="clr-namespace:Sinacor.UI.Bovespa.Corretagem.Model;assembly=Sinacor.UI.Bovespa.Corretagem.Model"
	xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls"
    WindowStartupLocation="CenterScreen" 
    AutoContentHeight="True" 
    AutoContentWidth="True"
    WindowState="Maximized" 
    Title="{DynamicResource Bovespa.Corretagem.Label.CadastroTaxas}"
	x:Class="Sinacor.UI.Bovespa.Corretagem.View.SmartClient.CadastroTaxa"
    ModulePlus="False"
    ModuleId="ORD">
    <Controls:SinacorExpanderContainer x:Name="ExpanderContainer" VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="135"/>
            <RowDefinition Height="4" />
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Controls:SinacorExpander Header="{DynamicResource Bovespa.Corretagem.Label.Pesquisa}" Grid.Row="0"
                                  x:Name="expanderPesquisar"
                                  IsExpanded="True" >
            <Grid>
                <Controls:SinacorGroupBox HorizontalAlignment="Left"
                                          VerticalAlignment="Top"
                                          Header="{DynamicResource Bovespa.Corretagem.Label.NaturezaOperacao}"
                                          Height="52"
                                          Width="199">
                    <Grid>
                        <Controls:SinacorRadioButton HorizontalAlignment="Left"
                                                     VerticalAlignment="Top"
                                                     Content="{DynamicResource Bovespa.Corretagem.Label.Compra}"
                                                     GroupName="NatOpera"
                                                     Margin="0,0,0,0"
                                                     Width="85"
                                                     TabIndex="1"
                                                     x:Name="rdbCompra"/>
                        <Controls:SinacorRadioButton HorizontalAlignment="Left"
                                                     VerticalAlignment="Top"
                                                     Content="{DynamicResource Bovespa.Corretagem.Label.Venda}"
                                                     GroupName="NatOpera"
                                                     Margin="85,0,0,0"
                                                     TabIndex="2"
                                                     x:Name="rdbVenda"/>
                    </Grid>
                </Controls:SinacorGroupBox>
                <Controls:SinacorGroupBox HorizontalAlignment="Left"
                                          VerticalAlignment="Top"
                                          Header="{DynamicResource Bovespa.Corretagem.Label.Periodo}"
                                          Height="52"
                                          Width="360"
                                          Margin="204,0,0,0">
                    <Grid>
                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                               Content="{DynamicResource Bovespa.Corretagem.Label.Inicio}"
                                               Width="65"/>
                        <Controls:SinacorDatePicker HorizontalAlignment="Left"
                                                    Margin="70,0,0,0"
                                                    VerticalAlignment="Top"
                                                    TabIndex="3"                                                    
                                                    x:Name="dtpInicio"
                                                    Value ="{Binding FiltroTaxa.Periodo.DataInicial}"/>
                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                               Content="{DynamicResource Bovespa.Corretagem.Label.Fim}"
                                               Margin="180,0,0,0"
                                               Width="45"/>
                        <Controls:SinacorDatePicker HorizontalAlignment="Left"
                                                    VerticalAlignment="Top"
                                                    Margin="230,0,0,0"
                                                    TabIndex="4"                                                    
                                                    x:Name="dtpFim"                                                    
                                                    Value ="{Binding FiltroTaxa.Periodo.DataFinal}"/>
                    </Grid>
                </Controls:SinacorGroupBox>
                <Controls:SinacorLabel HorizontalAlignment="Left"
                                       Width="80"
                                       Content="{DynamicResource Bovespa.Corretagem.Label.Bolsa}"
                                       Margin="0,52,0,0"
                                       HorizontalContentAlignment="Left"/>
                <Controls:SinacorComboBox HorizontalAlignment="Left"
                                          VerticalAlignment="Top"                                          
                                          Margin="0,74,0,0"
                                          Width="260"
                                          TabIndex="5"
                                          x:Name="cboBolsa"
                                          SelectedValue="{Binding Path=FiltroTaxa.Bolsa}"
                                          DisplayMemberPath="Descricao"
                                          SelectedValuePath="Codigo"
                                          ItemsSource="{Binding Path=PresenterCadastroTaxa.Bolsa, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"/>
                <Controls:SinacorLabel HorizontalAlignment="Left"
                                       Width="80"
                                       Content="{DynamicResource Bovespa.Corretagem.Label.Mercado}"
                                       Margin="264,52,0,0"
                                       HorizontalContentAlignment="Left"/>
                <Controls:SinacorComboBox Width="260"                                          
                                          VerticalAlignment="Top"
                                          HorizontalAlignment="Left"
                                          Margin="264,74,0,0"
                                          TabIndex="6"
                                          x:Name="cboMercado"
                                          SelectedValue="{Binding Path=FiltroTaxa.Mercado}"
                                          DisplayMemberPath="Descricao"
                                          SelectedValuePath="CodigoAlfa"
                                          ItemsSource="{Binding PresenterCadastroTaxa.Mercado, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}" />

                <Controls:SinacorLabel Width="130"
                                       Content="{DynamicResource Bovespa.Corretagem.Label.MercadoOrigem}"
                                       HorizontalAlignment="Left"
                                       Margin="528,52,0,0"
                                       HorizontalContentAlignment="Left"/>
                <Controls:SinacorComboBox Width="260"                                          
                                          HorizontalAlignment="Left"
                                          VerticalAlignment="Top"
                                          Margin="528,74,0,0"
                                          TabIndex="7"                                          
                                          x:Name="cboMercadoOrigem"
                                          SelectedValue="{Binding Path=FiltroTaxa.MercadoOrigem}"
                                          DisplayMemberPath="Descricao"
                                          SelectedValuePath="CodigoAlfa"
                                          ItemsSource="{Binding PresenterCadastroTaxa.MercadoOrigem, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}" />

                <Controls:SinacorButton Content="{DynamicResource Bovespa.Corretagem.Label.Pesquisar}"
                                        Width="80"
                                        Margin="792,74,0,0"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        TabIndex="8"
                                        IsDefault="True"
                                        Click="btnPesquisar_Click"
                                        CausesValidation="True"
                                        x:Name="btnPesquisar"/>

                <Controls:SinacorButton IsEnabled="true"
										Margin="876,74,0,0"
										TabIndex="9"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Click="btnNovaPesquisa_Click"
                                        CausesValidation="False"
                                        x:Name="btnNovaPesquisa"
										ToolTip="{DynamicResource Bovespa.Corretagem.Label.NovaPesquisa}"
                                        Icon="IconButtonNewSearch"/>
            </Grid>
        </Controls:SinacorExpander>
        <Controls:SinacorExpander Header="{DynamicResource Bovespa.Corretagem.Label.Taxas}"
                                  Grid.Row="2"
                                  x:Name="expanderTaxas"
                                  IsExpanded="True" AllowExpand="False">
            <Grid>
                <Controls:SinacorDataGrid x:Name="dtgTaxas"
                                          Margin="0,0,0,0"                                          
                                          ItemsSource="{Binding PresenterCadastroTaxa.Taxas, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"
                                          PanelInsertTemplate="{Binding PanelUpdateTemplate, RelativeSource={RelativeSource Self}}"
                                          Deleting="dtgTaxas_Deleting"
                                          RowEditMode="EditPanel"                                          
                                          AllowDelete="True"
                                          AllowPanelInsert="True"
                                          AllowPanelUpdate="True"
                                          InsertBegun="dtgTaxas_InsertEditBegun"
                                          EndingInsert="dtgTaxas_EndingInsert"
                                          UpdateBegun="dtgTaxas_InsertEditBegun"
                                          EndingUpdate="dtgTaxas_EndingUpdate"
                                          CancelingInsert="dtgTaxas_CancelingInsertEdit"
                                          CancelingUpdate="dtgTaxas_CancelingInsertEdit">
                    <Controls:SinacorDataGrid.PanelUpdateTemplate>
                        <DataTemplate>
                            <Grid HorizontalAlignment="Left" 
                                  x:Name="gridTeste"
                                  Height="300" 
                                  VerticalAlignment="Top" 
                                  Width="920">
                                <Controls:SinacorGroupBox HorizontalAlignment="Left"
                                                          VerticalAlignment="Top"
                                                          Header= "{DynamicResource Bovespa.Corretagem.Label.NaturezaOperacao}"
                                                          Height="52"
                                                          Width="200">
                                    <Grid>
                                        <Controls:SinacorRadioButton HorizontalAlignment="Left"
                                                                     VerticalAlignment="Top"
                                                                     Content="{DynamicResource Bovespa.Corretagem.Label.Compra}"
                                                                     GroupName="NatOperaTpt"
                                                                     Margin="0,0,0,0"
                                                                     Width="85"
                                                                     TabIndex="1"
                                                                     x:Name="rdbCompraTpt"
                                                                     Checked="rdbCompraTpt_Checked"/>
                                        <Controls:SinacorRadioButton HorizontalAlignment="Left"
                                                                     VerticalAlignment="Top"
                                                                     Content="{DynamicResource Bovespa.Corretagem.Label.Venda}"
                                                                     GroupName="NatOperaTpt"
                                                                     Margin="85,0,0,0"
                                                                     TabIndex="2"
                                                                     x:Name="rdbVendaTpt"
                                                                     Checked="rdbVendaTpt_Checked" />
                                    </Grid>

                                </Controls:SinacorGroupBox>
                                <Controls:SinacorGroupBox HorizontalAlignment="Left"
                                                          VerticalAlignment="Top"
                                                          Header="{DynamicResource Bovespa.Corretagem.Label.Periodo}"
                                                          Height="52"
                                                          Width="360"
                                                          Margin="205,0,0,0">
                                    <Grid>
                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Content="{DynamicResource Bovespa.Corretagem.Label.Inicio}"
                                                               Width="65"
                                                               IsTargetFieldRequired="True"/>
                                        <Controls:SinacorDatePicker HorizontalAlignment="Left"
                                                                    Margin="70,0,0,0"
                                                                    VerticalAlignment="Top"
                                                                    TabIndex="3"
                                                                    x:Name="dtpInicioTpt"/>
                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Content="{DynamicResource Bovespa.Corretagem.Label.Fim}"
                                                               Margin="180,0,0,0"
                                                               Width="45"
                                                               IsTargetFieldRequired="True"/>
                                        <Controls:SinacorDatePicker HorizontalAlignment="Left"
                                                                    VerticalAlignment="Top"
                                                                    Margin="230,0,0,0"
                                                                    TabIndex="4"
                                                                    x:Name="dtpFimTpt"/>
                                    </Grid>
                                </Controls:SinacorGroupBox>
                                <Controls:SinacorLabel HorizontalAlignment="Left"
                                                       Width="80"
                                                       Content="{DynamicResource Bovespa.Corretagem.Label.Bolsa}"                                                       
                                                       Margin="0,52,0,0"
                                                       HorizontalContentAlignment="Left"
                                                       IsTargetFieldRequired="True"/>
                                <Controls:SinacorComboBox HorizontalAlignment="Left"
                                                          VerticalAlignment="Top"                                                          
                                                          Margin="0,74,0,0"
                                                          Width="281"
                                                          TabIndex="5"
                                                          x:Name="cboBolsaTpt"        
                                                          SelectedValue="{Binding CodigoBolsa}"
                                                          DisplayMemberPath="Descricao"
                                                          SelectedValuePath="Codigo"
                                                          ItemsSource="{Binding Path=PresenterCadastroTaxa.BolsaTPT, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"/>

                                <Controls:SinacorLabel HorizontalAlignment="Left"
                                                       Width="80"
                                                       Content="{DynamicResource Bovespa.Corretagem.Label.Mercado}"
                                                       Margin="285,52,0,0"
                                                       HorizontalContentAlignment="Left"
                                                       IsTargetFieldRequired="True"/>
                                <Controls:SinacorComboBox Width="268"                                                          
                                                          VerticalAlignment="Top"
                                                          HorizontalAlignment="Left"
                                                          Margin="285,74,0,0"
                                                          TabIndex="6"
                                                          x:Name="cboMercadoTpt"
                                                          DisplayMemberPath="Descricao"
                                                          SelectedValuePath="CodigoAlfa"
                                                          SelectedValue="{Binding Mercado}"
                                                          ItemsSource="{Binding PresenterCadastroTaxa.MercadoTPT, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}" />
                                <Controls:SinacorLabel Width="130"
                                                       Content="{DynamicResource Bovespa.Corretagem.Label.MercadoOrigem}"
                                                       HorizontalAlignment="Left"
                                                       Margin="557,52,0,0"
                                                       HorizontalContentAlignment="Left"
                                                       IsTargetFieldRequired="True"/>
                                <Controls:SinacorComboBox Width="260"                                                          
                                                          HorizontalAlignment="Left"
                                                          VerticalAlignment="Top"
                                                          Margin="557,74,0,0"
                                                          TabIndex="7"
                                                          x:Name="cboMercadoOrigemTpt"
                                                          SelectedValue="{Binding MercadoOrigem}"
                                                          DisplayMemberPath="Descricao"
                                                          SelectedValuePath="CodigoAlfa"
                                                          ItemsSource="{Binding PresenterCadastroTaxa.MercadoOrigemTPT, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}" />

                                <Controls:SinacorGroupBox HorizontalAlignment="Left"
                                                          VerticalAlignment="Top"                                                           
                                                          Margin="0,98,0,0"
                                                          Width="382"
                                                          Height="125"
                                                          x:Name="cboNaturezaOperacaoTpt">
                                    <Grid>
                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Width="150"
                                                               Content="{DynamicResource Bovespa.Corretagem.Label.TipoOperacao}"
                                                               Margin="0,0,0,0"
                                                               HorizontalContentAlignment="Left"
                                                               IsTargetFieldRequired="True"/>
                                        <Controls:SinacorComboBox Width="176"                                                                  
                                                                  VerticalAlignment="Top"
                                                                  HorizontalAlignment="Left"
                                                                  Margin="0,22,0,0"
                                                                  TabIndex="8"
                                                                  SelectedValue="{Binding Operacao}"
                                                                  x:Name="cboOperacaoTpt"
                                                                  ItemsSource="{Binding PresenterCadastroTaxa.ListaOperacao, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"/>
                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Width="150"
                                                               Content="{DynamicResource Bovespa.Corretagem.Label.TipoAtivo}"
                                                               Margin="180,0,0,0"
                                                               HorizontalContentAlignment="Left"
                                                               IsTargetFieldRequired="True"/>
                                        <Controls:SinacorComboBox Width="180"                                                                  
                                                                  VerticalAlignment="Top"
                                                                  HorizontalAlignment="Left"
                                                                  Margin="180,23,0,0"
                                                                  TabIndex="9"
                                                                  x:Name="cboAtivoTpt"
                                                                  SelectedValue="{Binding Papel}"
                                                                  ItemsSource="{Binding PresenterCadastroTaxa.ListaAtivo, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"/>
                                        <Controls:SinacorLabel Width="150"
                                                               Content="{DynamicResource Bovespa.Corretagem.Label.TipoCliente}"
                                                               HorizontalAlignment="Left"
                                                               Margin="0,50,0,0"
                                                               HorizontalContentAlignment="Left"
                                                               IsTargetFieldRequired="True"/>
                                        <Controls:SinacorComboBox Width="176"                                                                  
                                                                  HorizontalAlignment="Left"
                                                                  VerticalAlignment="Top"
                                                                  Margin="0,73,0,0"
                                                                  TabIndex="10"
                                                                  x:Name="cboClienteTpt"
                                                                  SelectedValue="{Binding Cliente}"
                                                                  ItemsSource="{Binding PresenterCadastroTaxa.ListaCliente, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"/>
                                        <Controls:SinacorLabel Width="150"
                                                               Content="{DynamicResource Bovespa.Corretagem.Label.TipoLiquidacao}"
                                                               HorizontalAlignment="Left"
                                                               Margin="180,50,0,0"
                                                               HorizontalContentAlignment="Left"
                                                               IsTargetFieldRequired="True"/>
                                        <Controls:SinacorComboBox Width="180"                                                                  
                                                                  HorizontalAlignment="Left"
                                                                  VerticalAlignment="Top"
                                                                  Margin="180,73,0,0"
                                                                  TabIndex="11"
                                                                  x:Name="cboLiquidacaoTpt"
                                                                  SelectedValue="{Binding Liquidacao}"
                                                                  ItemsSource="{Binding PresenterCadastroTaxa.ListaLiquidacao, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"/>

                                    </Grid>
                                </Controls:SinacorGroupBox>

                                <Controls:SinacorGroupBox Header="" Margin="386,98,0,0"
                                                                    Width="431"
                                                                    Height="125"
                                                                    HorizontalAlignment="Left"
                                                                    VerticalAlignment="Top">
                                    <Grid>
                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Width="200"
                                                               Content="{DynamicResource Bovespa.Corretagem.Label.ValorEmolumentoBovespa}"
                                                               Margin="0,0,0,0"
                                                               HorizontalContentAlignment="Left"
                                                               IsTargetFieldRequired="True"/>
                                        <Controls:SinacorDecimalTextBox HorizontalAlignment="Left"
                                                                      VerticalAlignment="Top"
                                                                      Integers="2"
                                                                      Decimals="6"
                                                                      Width="200"
                                                                      Margin="0,22,0,0"
                                                                      TabIndex="12"
                                                                      Value="{Binding PercEmoluentoBovespa}"
                                                                      x:Name="txtValorEmolumentoBovespaTpt"/>
                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Width="190"
                                                               Content="{DynamicResource Bovespa.Corretagem.Label.ValorEmolumentoCBLC}"
                                                               Margin="204,0,0,0"
                                                               HorizontalContentAlignment="Left"
                                                               IsTargetFieldRequired="True"/>
                                        <Controls:SinacorDecimalTextBox HorizontalAlignment="Left"
                                                                      VerticalAlignment="Top"                                                                      
                                                                      Integers="2"
                                                                      Decimals="6"
                                                                      Width="200"
                                                                      Margin="204,23,0,0"
                                                                      TabIndex="13"
                                                                      Value="{Binding PercEmoluentoCBLC}"
                                                                      x:Name="txtValorEmolumentoCBLCTpt"/>
                                        <Controls:SinacorLabel Width="200"
                                                               Content="{DynamicResource Bovespa.Corretagem.Label.ValorRegistroBovespa}"
                                                               HorizontalAlignment="Left"
                                                               Margin="0,50,0,0"
                                                               HorizontalContentAlignment="Left"
                                                               IsTargetFieldRequired="True"/>
                                        <Controls:SinacorDecimalTextBox HorizontalAlignment="Left"
                                                                      VerticalAlignment="Top"
                                                                      Integers="2"
                                                                      Decimals="6"
                                                                      Width="200"
                                                                      Margin="0,73,0,0"
                                                                      TabIndex="14"
                                                                      Value="{Binding PercRegistroBovespa}"
                                                                      x:Name="txtValorRegistroBovespaTpt"/>
                                        <Controls:SinacorLabel Width="200"
                                                               Content="{DynamicResource Bovespa.Corretagem.Label.ValorRegistroCBLC}"
                                                               HorizontalAlignment="Left"
                                                               Margin="204,50,0,0"
                                                               HorizontalContentAlignment="Left"
                                                               IsTargetFieldRequired="True"/>
                                        <Controls:SinacorDecimalTextBox HorizontalAlignment="Left"
                                                                      VerticalAlignment="Top"
                                                                      Integers="2"
                                                                      Decimals="6"
                                                                      Width="199"
                                                                      Margin="204,73,0,0"
                                                                      TabIndex="15"
                                                                      Value="{Binding PercRegistroCBLC}"
                                                                      x:Name="txtValorRegistroCBLCTpt"/>
                                    </Grid>
                                </Controls:SinacorGroupBox>
                                <Controls:SinacorButton HorizontalAlignment="Left" VerticalAlignment="Top" Width="90" Content="Salvar" Margin="825,177,0,0" Click="Salvar_Click" IsDefault="True"/>
                                <Controls:SinacorButton HorizontalAlignment="Left" VerticalAlignment="Top" Content="Cancelar" Width="90" Margin="825,202,0,0" Click="Cancelar_Click"/>
                            </Grid>
                        </DataTemplate>
                    </Controls:SinacorDataGrid.PanelUpdateTemplate>
                    <Controls:SinacorDataGrid.Columns>
                        <Controls:Column Name="Operacao" 			
                                         Title="Bovespa.Corretagem.Label.NaturezaOper" 			
                                         IsRequired="True"
                                         AllowGroup ="True"
                                         AllowInsert="False" 			
                                         AllowUpdate="False"  			
                                         HorizontalCellAlignment="Center" 
                                         DisplayMemberPath="NaturezaOperacao"/>

                        <Controls:Column Name="Periodo" 			
                                         Title="Bovespa.Corretagem.Label.InicioPeriodo" 			
                                         IsRequired="True" 
                                         AllowGroup ="True"
                                         AllowInsert="False" 			
                                         AllowUpdate="False"  			
                                         HorizontalCellAlignment="Center"                                           
                                         DisplayMemberPath="Periodo.DataInicial"/>

                        <Controls:Column Name="FimPeriodo" 			
                                         Title="Bovespa.Corretagem.Label.FimPeriodo" 			
                                         IsRequired="True" 
                                         AllowGroup ="True"
                                         AllowInsert="False" 			
                                         AllowUpdate="False"  			
                                         HorizontalCellAlignment="Center"                                            
                                         DisplayMemberPath="Periodo.DataFinal"/>

                        <Controls:Column Name="Bolsa" 			
                                         Title="Bovespa.Corretagem.Label.Bolsa" 			
                                         IsRequired="True"
                                         AllowGroup ="True"
                                         AllowInsert="False" 			
                                         AllowUpdate="False"  			
                                         HorizontalCellAlignment="Left"                                             
                                         DisplayMemberPath="NomeBolsa"/>

                        <Controls:Column Name="Mercado" 			
                                         Title="Bovespa.Corretagem.Label.Mercado" 			
                                         IsRequired="True" 
                                         AllowGroup ="True"
                                         AllowInsert="False" 			
                                         AllowUpdate="False"  			
                                         HorizontalCellAlignment="Left"                                              
                                         DisplayMemberPath="NomeMercado"/>

                        <Controls:Column Name="MercadoOrigem" 			
                                         Title="Bovespa.Corretagem.Label.MercadoOrigem" 			
                                         IsRequired="True" 
                                         AllowGroup ="True"
                                         AllowInsert="False" 			
                                         AllowUpdate="False"  			
                                         HorizontalCellAlignment="Left"                                               
                                         DisplayMemberPath="NomeMercadoOrigem"/>

                        <Controls:Column Name="TipoOperacao" 			
                                         Title="Bovespa.Corretagem.Label.TpOperacao" 			
                                         IsRequired="True" 
                                         AllowGroup ="True"
                                         AllowInsert="False" 			
                                         AllowUpdate="False"  			
                                         HorizontalCellAlignment="Left"                                               
                                         DisplayMemberPath="Operacao"/>

                        <Controls:Column Name="TipoAtivo" 			
                                         Title="Bovespa.Corretagem.Label.TipoAtivo" 			
                                         IsRequired="True" 
                                         AllowGroup ="True"
                                         AllowInsert="False" 			
                                         AllowUpdate="False"  			
                                         HorizontalCellAlignment="Left"                                               
                                         DisplayMemberPath="Papel"/>


                        <Controls:Column Name="TipoCliente" 			
                                         Title="Bovespa.Corretagem.Label.TpCliente" 			
                                         IsRequired="True"
                                         AllowGroup ="True"
                                         AllowInsert="False" 			
                                         AllowUpdate="False"  			
                                         HorizontalCellAlignment="Left"                                                                                        
                                         DisplayMemberPath="Cliente"/>

                        <Controls:Column Name="TipoLiquidacao" 			
                                         Title="Bovespa.Corretagem.Label.TpLiquidacao" 			
                                         IsRequired="True" 	
                                         AllowGroup ="True"
                                         AllowInsert="False" 			
                                         AllowUpdate="False"  			
                                         HorizontalCellAlignment="Left"                                                                                                                                 
                                         DisplayMemberPath="Liquidacao"/>

                        <Controls:Column Name="EmolumentoBovespa" 			
                                         Title="Bovespa.Corretagem.Label.VlEmolBovespa" 			
                                         IsRequired="True" 	
                                         AllowGroup ="True"
                                         AllowInsert="False" 			
                                         AllowUpdate="False"  			
                                         HorizontalCellAlignment="Right"                                                                                                                                 
                                         DisplayMemberPath="PercEmoluentoBovespa"
                                         Integers="2"
                                         Decimals="6"
                                         StringFormat="n6"/>

                        <Controls:Column Name="EmolumentoCBLC" 			
                                         Title="Bovespa.Corretagem.Label.VlEmolCBLC" 			
                                         IsRequired="True" 	
                                         AllowGroup ="True"
                                         AllowInsert="False" 			
                                         AllowUpdate="False"  			
                                         HorizontalCellAlignment="Right"                                                                                                                                  
                                         DisplayMemberPath="PercEmoluentoCBLC"
                                         Integers="2"
                                         Decimals="6"
                                         StringFormat="n6"/>

                        <Controls:Column Name="RegistroBovespa" 			
                                         Title="Bovespa.Corretagem.Label.VlRegBovespa" 			
                                         IsRequired="True" 		
                                         AllowGroup ="True"
                                         AllowInsert="False" 			
                                         AllowUpdate="False"  			
                                         HorizontalCellAlignment="Right"                                                                                                                                 
                                         DisplayMemberPath="PercRegistroBovespa"
                                         Integers="2"
                                         Decimals="6"
                                         StringFormat="n6"/>

                        <Controls:Column Name="RegistroCBLC" 			
                                         Title="Bovespa.Corretagem.Label.VlRegCBLC" 			
                                         IsRequired="True" 	
                                         AllowGroup ="True"
                                         AllowInsert="False" 			
                                         AllowUpdate="False"  			
                                         HorizontalCellAlignment="Right"                                                                                                                                 
                                         DisplayMemberPath="PercRegistroCBLC"
                                         Integers="2"
                                         Decimals="6"
                                         StringFormat="n6"/>

                    </Controls:SinacorDataGrid.Columns>
                </Controls:SinacorDataGrid>
            </Grid>
        </Controls:SinacorExpander>

    </Controls:SinacorExpanderContainer>


</Controls:SinacorWindow>